# TODO 文件路径 os
import os
# 查找某个资源的绝对路径
# print(os.path.abspath('../'))      #    C:\Users\年轻人\Desktop\python_work\day07\day07代码
# print(os.path.abspath('test/account.text')) # C:\Users\年轻人\Desktop\python_work\day07\day07代码\文件\test\account.text

# 获取当前脚本的绝对路径
# print(os.path.abspath(__file__))    # C:\Users\年轻人\Desktop\python_work\day07\day07代码\文件\08-文件路径-扩展.py

# 路径拼接
# os.path.join()

print(os.path.abspath('test'))
mydd_file = os.path.join(os.path.abspath('test'), 'mydd')
print(mydd_file)     # C:\Users\年轻人\Desktop\python_work\day07\day07代码\文件\test\mydd